package com.ta.gulimall.product.dao;

import com.ta.gulimall.product.view.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.Map;

/**
 * spu信息
 * 
 * @author tuao
 * @email tuaoo@gmail.com
 * @date 2022-10-27 16:31:57
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {

    @MapKey("id")
    Map<Long, SpuInfoEntity> listSkuInfoByIds(@Param("spuIds") Collection<Long> spuIds);
}
